﻿using System;

namespace PRO.Config
{
	/// <summary>
	/// 基本设置描述类, 加[Serializable]标记为可序列化
	/// </summary>
	[Serializable]
	public class BaseConfigInfo : IConfigInfo
    {
        #region 私有字段

        private string m_dbconnectstring = "Data Source=;User ID=dntuser;Password=;Initial Catalog=;Pooling=true";		// 数据库连接串-格式(中文为用户修改的内容)：Data Source=数据库服务器地址;User ID=您的数据库用户名;Password=您的数据库用户密码;Initial Catalog=数据库名称;Pooling=true
        private string m_tableprefix = "";		// 数据库中表的前缀
        private string m_forumpath = "/";			
        //private string m_dbtype = "";
        private string _EmailHost;
        private int _EmailPort;
        private bool _EnableSSL;
        private string _EmailAccount;
        private string _EmailPwd;
        private string _DEC_KEY;

        private string _Title;
        private string _Keywords;
        private string _Description;

        private string _Transport;
        private string _Refunded_OR_Exchanged;


       
        

        #endregion

        #region 属性

        /// <summary>
		/// 数据库连接串
		/// 格式(中文为用户修改的内容)：
		///    Data Source=数据库服务器地址;
		///    User ID=您的数据库用户名;
		///    Password=您的数据库用户密码;
		///    Initial Catalog=数据库名称;Pooling=true
		/// </summary>
		public string Dbconnectstring
		{
			get { return m_dbconnectstring;}
			set { m_dbconnectstring = value;}
		}

		/// <summary>
		/// 数据库中表的前缀
		/// </summary>
        public string Tableprefix
        {
            get { return m_tableprefix; }
            set { m_tableprefix = value; }
        }

        /// <summary>
        /// 站点内的路径
        /// </summary>
        public string Forumpath
        {
            get { return m_forumpath; }
            set { m_forumpath = value; }
        }

        ///// <summary>
        ///// 数据库类型
        ///// </summary>
        //public string Dbtype
        //{
        //    get { return m_dbtype; }
        //    set { m_dbtype = value; }
        //}

        /// <summary>
        /// 邮件发送服务器
        /// </summary>
        public string EmailHost
        {
            get { return _EmailHost; }
            set { _EmailHost = value; }
        }
        /// <summary>
        /// 邮件发送服务器端口
        /// </summary>
        public int EmailPort
        {
            get { return _EmailPort; }
            set { _EmailPort = value; }
        }

        /// <summary>
        /// 发送邮件是否启用SSL
        /// </summary>
        public bool EnableSSL
        {
            get { return _EnableSSL; }
            set { _EnableSSL = value; }
        }
        /// <summary>
        /// 发送邮件账号
        /// </summary>
        public string EmailAccount
        {
            get { return _EmailAccount; }
            set { _EmailAccount = value; }
        }
        /// <summary>
        /// 发送邮件账号的密码
        /// </summary>
        public string EmailPwd
        {
            get { return _EmailPwd; }
            set { _EmailPwd = value; }
        }
        /// <summary>
        /// DEC 加密向量
        /// </summary>
        public string DEC_KEY
        {
            get { return _DEC_KEY; }
            set { _DEC_KEY = value; }
        }
        /// <summary>
        /// 网站描述
        /// </summary>
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }
        /// <summary>
        /// 网站关键词
        /// </summary>
        public string Keywords
        {
            get { return _Keywords; }
            set { _Keywords = value; }
        }
        //网站标题
        public string Title
        {
            get { return _Title; }
            set { _Title = value; }
        }

        /// <summary>
        /// 退还货说明
        /// </summary>
        public string Refunded_OR_Exchanged
        {
            get { return _Refunded_OR_Exchanged; }
            set { _Refunded_OR_Exchanged = value; }
        }
        /// <summary>
        /// 交通运输说明
        /// </summary>
        public string Transport
        {
            get { return _Transport; }
            set { _Transport = value; }
        }
        #endregion
    }
}
